package com.ojoin.trade.common.web.domain;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

/**
 * 消息通知模板
 */
public class NotificationTemplate extends BaseEntity<NotificationTemplate> {

    /**
     * 模板名称 必须唯一 发送时使用
     */
    @NotNull(message = "不允许为空")
    @Length(min=1, max=100, message = "字符长度不合法")
    private String name;

    /**
     * 类型
     */
    @NotNull(message = "不允许为空")
    private NotificationType type;


    /**
     * 模板标题
     */
    @Length(min=1, max=200, message = "字符长度不合法")
    private String title;


    /**
     * 模板内容
     */
    private String template;

    /**
     * 是否已逻辑删除
     */
    private Boolean deleted = Boolean.FALSE;

    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public NotificationType getType() {
        return type;
    }

    public void setType(final NotificationType type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(final String title) {
        this.title = title;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(final String template) {
        this.template = template;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(final Boolean deleted) {
        this.deleted = deleted;
    }

    public void markDeleted() {
        setDeleted(Boolean.TRUE);
    }

	@Override
	public Date getRowUpdateTime() {
		
		return null;
	}

	@Override
	public void setRowUpdateTime(Date rowUpdateTime) {
		
		
	}

	@Override
	public Date getRowCreateTime() {
		
		return null;
	}

	@Override
	public void setRowCreateTime(Date rowCreateTime) {
		
		
	}

	@Override
	public String getTableName() {
		
		return null;
	}

	@Override
	public void preInsert() {
		
		
	}

	@Override
	public void preUpdate() {
		
	}

}
